import Http from "@/http";

export function chargeFinishMsgTemplateApi() {
    return Http.get('common/charge/template')
}

export function getGenderItemsApi() {
    return getItemsByCategoryCodeApi('GENDER')
}

export function getMaritalStatusApi() {
    return getItemsByCategoryCodeApi('MARITAL_STATUS')
}

export function getEducationApi() {
    return getItemsByCategoryCodeApi('EDUCATION')
}

export function getHouseStatusApi() {
    return getItemsByCategoryCodeApi('HOUSE_STATUS')
}

export function getCarStatusApi() {
    return getItemsByCategoryCodeApi('CAR_STATUS')
}

export function getCareerApi() {
    return getItemsByCategoryCodeApi('CAREER')
}


export function getMonthIncomeApi() {
    return getItemsByCategoryCodeApi('MONTH_INCOME')
}


export async function getItemsByCategoryCodeApi(code) {
    const r = await Http.get('common/getItemsByCategory/' + code)
    return r.data
}



export function commonConfigApi() {
    return Http.get('common/commonConf')
}

export function qrApi() {
    return Http.get('common/qr')
}

export function rewardRateApi() {
    return Http.get('common/rewardRate')
}